import request from '@/utils/request';



//账号登录
export const checkLogin = (data) => {
    return request.post('/users/checkLogin',data);
}

//获取账号（个人中心）信息
export const accountInfo = (data) => {
    return request.get('/users/accountinfo',{params:data});
}

//获取账号列表
export const list= (data) => {
    return request.get('/users/list',{params:data});
}

//删除账号
export const del= (data) => {
    return request.get('/users/del',{params:data});
}

//添加账号
export const add= (data) => {
    return request.post('/users/add',data);
}
//修改账号
export const edit= (data) => {
    return request.post('/users/edit',data);
}
// 添加商品
export const addGoods = (data) => {
    return request.post('/goods/add', data);
}
//修改密码
export const editPassword = (formData) => {
    return request.post('/users/editpwd', formData);

}
//订单管理
export const orderList = (data) => {
    return request.get('/orders/list', {params: data});
}